package cn.qingsec.service;

import cn.dev33.satoken.util.SaResult;
import cn.qingsec.service.interceptor.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name="oauth2-server",contextId = "oauth2-server")
public interface Oauth2ServerService {
    @GetMapping("/isLogin")
    SaResult isLogin();
    @GetMapping("/getLoginUser")
    SaResult getLoginUser();
    @GetMapping("/check/checkLogin")
    SaResult checkLogin();
    @GetMapping("/check/checkPermission")
    SaResult checkPermission();

    @GetMapping("/check/checkPermissionAnd")
    SaResult checkPermissionAnd();

    @GetMapping("/check/checkPermissionOr")
    SaResult checkPermissionOr();

    @GetMapping("/check/checkRole")
    SaResult checkRole();

    @GetMapping("/check/openSafe")
    SaResult openSafe();

}
